import { defineComponent } from 'vue'
import { Button } from 'ant-design-vue'
import { useRouter } from 'vue-router'
import '@/views/index.scss'

export default defineComponent({
  setup() {
    const router = useRouter()
    return () => (
      <div class="page">
        <p class="page_title">404 page not found</p>
        <Button type="primary" onClick={() => router.replace('/')}>
          返回首页
        </Button>
      </div>
    )
  }
})
